package com.atguigu.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 包名:com.atguigu.handler
 *
 * @author Leevi
 * 日期2021-09-07  10:23
 */
@RequestMapping("/hello")
@Controller
public class HelloHandler {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("/sayHello")
    public String sayHello(){
        logger.debug("sayHello()方法调用了...");
        return "target";
    }

    @RequestMapping("/getName")
    public String getName(){
        logger.debug("getName()方法调用了...");
        return "target";
    }

    @RequestMapping("/say/movie")
    public String sayMovie(){
        logger.debug("sayMovie()方法调用了...");
        return "target";
    }
}
